package com.ivanceras.client;

import java.util.HashMap;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.ivanceras.shared.bo.Ad_tab;
import com.ivanceras.shared.bo.Ad_table;
import com.ivanceras.shared.bo.Ad_window;
import com.ivanceras.shared.db.DAO;
import com.ivanceras.shared.db.Filter;
import com.ivanceras.shared.db.Order;
import com.ivanceras.shared.db.SerializableDAO;
import com.ivanceras.shared.db.SerializableFilter;

/**
 * The async counterpart of <code>GreetingService</code>.
 */
public interface DataServiceAsync {
	void retrieveWindowList(AsyncCallback<Ad_window[]> callback);

	void retriveTabList(Ad_window window, AsyncCallback<Ad_tab[]> asyncCallback);

	void retrieveTableData(Ad_table table, Integer page, Integer itemPerPage, Order order, SerializableFilter pointer, AsyncCallback<SerializableDAO[]> callback);

	void importDaoXmlFromUrl(String httpurl, AsyncCallback<Boolean> callback);

	void getTableList(String xmlurl,
			AsyncCallback<HashMap<String, Integer>> callback);
}
